package com.game.bean;

public class GameCell {
	private int id;
	private String creator;
	private int maxUser;
	private int userCount;
	private String[] userList;

	public GameCell() {
	}

	public GameCell(int id, String creator, int maxUser, int userCount,
			String[] userList) {
		this.id = id;
		this.creator = creator;
		this.maxUser = maxUser;
		this.userCount = userCount;
		this.userList = userList;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public int getMaxUser() {
		return maxUser;
	}

	public void setMaxUser(int maxUser) {
		this.maxUser = maxUser;
	}

	public int getUserCount() {
		return userCount;
	}

	public void setUserCount(int userCount) {
		this.userCount = userCount;
	}

	public String[] getUserList() {
		return userList;
	}

	public void setUserList(String[] userList) {
		this.userList = userList;
	}

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("id : ");
		builder.append(id);
		builder.append(",creator : ");
		builder.append(creator);
		builder.append(",maxUser : ");
		builder.append(maxUser);
		builder.append(",userCount : ");
		builder.append(userCount);
		builder.append(",userList : ");
		for (String user : userList) {
			builder.append(user);
			builder.append(",");
		}
		return builder.toString();
	}

}
